<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.8/dist/vue.js" type="text/javascript"></script>
</head>
<body>
    <div id="box">
        <h2>hello {{name}}</h2>
        <p>age:{{age}}</p>
        <hr>
        <a v-bind:href="info.url">{{info.name}}的博客</a>
        <a :href="info2.url">{{info2.name}}的博客</a>
    </div>

    <script>
        Vue.config.productionTip = false;  //阻止vue在启动时生成生产提示
        //创建实例
        new Vue({
            el:'#box',
            data:{
                name:'苏凉',
                age:21,
                info:{
                    name:"苏凉.py",
                    url:'https://suliang.blog.csdn.net/'
                },
                info2:{
                    name:"梦执.py",
                    url:"https://blog.csdn.net/m0_70127749?spm=1011.2124.3001.5343"
                }
                
            }
            
        })
    </script>
</body>
</html>